<template>
    <div class="pageRoom">
        <div class="back flex items-center justify-center" @click="back">BACK</div>
        <div class="bg" v-image-cache="'roomBg1'"></div>
        <div class="roomContainer flex items-center justify-center">
            <div class="roomConfig"></div>
            <div class="roomRight"></div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { ref, onActivated, onDeactivated, reactive, computed } from "vue"
import { useRouter } from "vue-router"
const data = reactive({
    size: 0,
    penMode: "block",
})

const router = useRouter()
const back = () => {
    router.back()
}

onActivated(() => {})

onDeactivated(() => {})
</script>

<style lang="scss" scoped>
.pageRoom {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    .bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        pointer-events: none;
        z-index: 0;
    }

    .back {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 30vmin;
        border-right: 1px solid rgba(111, 155, 222, 0.1);
        color: hsl(0, 0%, 80%);
        font-size: 5vmin;
        cursor: pointer;
        border-radius: 1.5vmin;
        letter-spacing: 0.5vmin;
        transition: all 0.3s;
        z-index: 2;
        &:hover {
            color: #fff;
            border-right: 1px solid rgba(111, 155, 222, 0.4);
            max-width: 40vmin;
            background-color: rgba(111, 155, 222, 0.3);
            box-shadow: 0px 0px 24px 0px rgba(111, 155, 222, 0.4);
            letter-spacing: 4vmin;
        }
    }

    .roomContainer {
        width: 100%;
        height: 100%;
        position: relative;
        background: rgba($color: #000000, $alpha: 0.8);
        padding: 0 0 0 35vmin;
        z-index: 1;
        .roomConfig {
            height: 90%;
            width: 64%;
            background: rgba($color: #000000, $alpha: 0.5);
            border-radius: 2vmin;
        }

        .roomRight {
            height: 90%;
            width: 30%;
            background: rgba($color: #000000, $alpha: 0.5);
            margin-left: 4vmin;
            border-radius: 2vmin;
        }
    }
}
</style>
